package com.kingyea.mobilepolice.marketorg.dao;

import com.kingyea.mobilepolice.marketorg.bean.MarketOrg;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Mr.Lin
 * @version v1.0.0
 * @description MarketOrgMapper
 * @date Created in 2018-04-26 15:22:48
 */
public interface MarketOrgMapper {

    /**
     * 通过ID删除对象
     */
    int deleteMarketCode(@Param("marketCode") Integer marketCode);

    /**
     * 保存对象
     */
    int save(MarketOrg obj);

    /**
     * 查询列表
     */
    List<MarketOrg> search(Map<String, Object> map);

    /**
     * @Description: 批量插入市场和部门的依赖
     * @Param: [marketOrgs]
     * @return: int
     * @Author: cxc
     * @Date: 2018.04.27 10:26
     */
    int batchSave(@Param("marketOrgs") List<MarketOrg> marketOrgs);

}
